//
//  FoodProfileViewController.m
//  ZooNgonDoiOS
//
//  Created by Trung sound on 6/6/12.
//  Copyright (c) 2012 Personal. All rights reserved.
//

#import "FoodProfileViewController.h"
#import "CheckinViewController.h"

@implementation FoodProfileViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        _foodProfileScreen = [[FoodProfileScreen alloc]initWithFrame:CGRectMake(0, 0, 320, 900)];
        _foodProfileScreen.parent = self;
        self.view = _foodProfileScreen;
        
    }
    return self;
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle
- (void) loadView {


}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

#pragma mark - switch screen

- (void) switchToFeedBackScreen {
    CheckinViewController *checkinViewController = [[CheckinViewController alloc]initWithNibName:@"CheckinViewController" bundle:nil];
    checkinViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    [self presentModalViewController:checkinViewController animated:YES];
}
@end
